//
//  ZWEditCell.m
//  wan
//
//  Created by apple on 16/2/29.
//  Copyright © 2016年 MyCompany. All rights reserved.
//

#import "ZWEditCell.h"
#import "ZWHeader.h"

@interface ZWEditCell ()
@property (nonatomic, weak) UIButton *editButton;
@end

@implementation ZWEditCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
//        CGFloat editButtonW = 60;
//        CGFloat editButtonH = 15;
//        CGFloat editButtonX = (WIDTH - editButtonW) / 2;
//        CGFloat editButtonY = (60 - editButtonH) / 2;
        UIButton *editButton = [[UIButton alloc] initWithFrame:CGRectMake((WIDTH - 60) / 2, 15, 60, 15)];
        [self.contentView addSubview:editButton];
        [editButton setTitle:@"退出玩儿" forState:UIControlStateNormal];
        editButton.titleLabel.font = [UIFont systemFontOfSize:15];
        [editButton setTitleColor:[UIColor colorWithRed:255.0 / 255 green:88.0 / 255 blue:0 / 255 alpha:1.0] forState:UIControlStateNormal];
        self.editButton = editButton;
    }
    return self;
}

@end
